package jubaozhu.yuhan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created by 执笔 on 2017/7/25.
 * boot 程序的入口
 */
@SpringBootApplication
@ServletComponentScan
@MapperScan(basePackages = {"jubaozhu.yuhan.mapper","zhibi.cms.mapper"})
@ComponentScan({"zhibi","jubaozhu"})
@EnableScheduling
public class Application extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }

}
